package com.fbb.pojo;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 书(Book)实体类
 *
 * @author fbb
 * @since 2022-03-02 20:14:39
 */

@ApiModel(value = "Book",description = "书")
@Data
public class Book implements Serializable {
    private static final long serialVersionUID = 483887766777368682L;
    /**
    * 主键id
    */
	@ApiModelProperty(name = "id",notes = "主键id",dataType = "Integer",required = true)
	    private Integer id;
    /**
    * 图书名字
    */
	@ApiModelProperty(name = "bookName",notes = "图书名字",dataType = "String",required = true)
	    private String bookName;
    /**
    * 图书id
    */
	@ApiModelProperty(name = "bookId",notes = "图书id",dataType = "Integer",required = true)
	    private Integer bookId;
    /**
    * 图书价格
    */
	@ApiModelProperty(name = "bookPrice",notes = "图书价格",dataType = "Double",required = true)
	    private Double bookPrice;
    /**
    * 创建时间
    */
	@ApiModelProperty(name = "createTime",notes = "创建时间",dataType = "Date",required = true)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        private Date createTime;
    /**
    * 更新时间
    */
	@ApiModelProperty(name = "updateTime",notes = "更新时间",dataType = "Date",required = true)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        private Date updateTime;
    /**
    * 逻辑删除
    */
	@ApiModelProperty(name = "deleted",notes = "逻辑删除",dataType = "Integer",required = true)
	    private Integer deleted;
    /**
    * 版本号
    */
	@ApiModelProperty(name = "version",notes = "版本号",dataType = "Integer",required = true)
	    private Integer version;



}
